changes added with modification in js and file allignment