added flask script and some js