Added javascript & stylesheet controller logic