Add javascript tests for placeholder feature