Moved JS to common directory