javascript changes to resize functions
Merge branch 'feature'