Adding synchronous js