Added in compatibility with ie/changes for server

Added in changes so it would run on the php server and compatibility so
it looks good in ie9