js logic moved to respective folders. updated index.html accordingly.