Added JavaScript layer