enabled javascript on layout files.