fixed #387 : Rename asset tab

Renaming the asset name on click of asset tab
please use an editor (or jslint) that will point out syntax problems like the missing semicolon here