Adding Javascript part.