adding specific javascript rules