tidying source .js files