Server sends

added server sends and corresponding javascripts
createPost javascript should be deleted