base setup for javascript