fixed #737 : excluding the file extension from the asset file name while renaming

re-based the repository and made the required changes. please review.
missing semicolon.  again, please use jshint.