An Approach for Reverse Engineering of Web-Based Applications