Polishing main JS file.