switch flot to js directory