Fixed buy js functionality
Merge branch 'issue-240' into develop