add js and java code