add mamp specific if statement for javascript