Refinement

Added separate JS file for scripts and fixed some alignment issue.