Adding simple javascript for app